package com.icss.dao;

import com.icss.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User,Integer> {
    @Query(value = "select * from t_user where user_id=?1" ,nativeQuery = true)
    public User findUserByUserId(Integer userId);
}
